
//***********************************************
//
//      Filename: Car.java
//
//        Author: wwb
//        Mails: 1274860621@qq.com
//        Create: 2018-03-29 19:21:30
// Last Modified: 2018-03-29 19:21:30
//***********************************************
 public class Car
{
      	private String name;
  	private String model;
	private int time;
        private int isAntique;
        private final int now = 2018;
public Car(String nm, String md, int ti)
{
        name = nm;
     	model = md;
	time = ti;
}
      public String getname(){
return name;}
public void  setname(){
  name = name;}
public String getmodel(){
 return model;}
public void setmodel(){
model = model;}
public int gettime(){
return time;}
public void settime(){
time = time;}
public boolean isAntique()
{
boolean iAq;
iAq = now - time > 45;
   return iAq;}
public String toString()

{
return "\nName: " + name + "\nModel: " + model + "\nTime: " + time;}
}
